X-Git-Url: http://git.cyclocoop.org/%22.%24info%5B?a=blobdiff_plain;f=includes%2Finstaller%2FMysqlUpdater.php;h=408f2fbb36339983f14a88ae07c7a9a93cc7c989;hb=4444f35d1d9f23bcb777fd4c19f8ea42888ae4a9;hp=99d6b35bd9ca4ee67d6a5f697306ff26bbbceba6;hpb=3c25a52df91930c56f4f9da9b216ebed993022c1;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/installer/MysqlUpdater.php b/includes/installer/MysqlUpdater.php index 99d6b35bd9..408f2fbb36 100644 --- a/includes/installer/MysqlUpdater.php +++ b/includes/installer/MysqlUpdater.php @@ -367,6 +367,7 @@ class MysqlUpdater extends DatabaseUpdater { 'patch-protected_titles-fix-pk.sql' ], [ 'renameIndex', 'site_identifiers', 'site_ids_type', 'PRIMARY', false, 'patch-site_identifiers-fix-pk.sql' ], + [ 'addIndex', 'recentchanges', 'rc_this_oldid', 'patch-recentchanges-rc_this_oldid-index.sql' ], ]; } @@ -756,8 +757,9 @@ class MysqlUpdater extends DatabaseUpdater { 'Converting links and brokenlinks tables to pagelinks' ); - global $wgContLang; - foreach ( $wgContLang->getNamespaces() as $ns => $name ) { + foreach ( + MediaWikiServices::getInstance()->getContentLanguage()->getNamespaces() as $ns => $name + ) { if ( $ns == 0 ) { continue; }